#-*- coding:utf-8 -*-
# Author:Ami
#全局变量
school = "adc"

def change(name):
    global school
    school = "ap"
    print("before change",name)
    name = "ccav" #这个变量只在这个函数里生效
    print("after change",name)


name = "alex"
change(name)
print(name,school)